browser

open fun browser(): MediaSource

Returns a media source that represents any browser's content.


    MediaReceivers mediaReceivers = browser.profile().mediaCasting().mediaReceivers();
    Optional<MediaReceiver> mediaReceiver =
            mediaReceivers.list()
                          .stream()
                          .filter(it -> it.name().startsWith("Samsung TV"))
                          .findAny();
    mediaReceiver.ifPresent(samsungTv -> {
        if (samsungTv.supports(MediaSource.browser())) {
            browser.cast(samsungTv);
        }
    });